package com.example.demo.javatest.thread.tongxin;

/**
 * Created by liujiahao on 2019/3/13.
 */
public class NotifyThread extends Thread{
    private Object lock;
    public NotifyThread(Object lock) {
        this.lock=lock;
    }

    @Override
    public void run() {
        synchronized (lock){
            lock.notify();
            lock.notify();
            lock.notify();
            lock.notify();
        }
    }
}
